home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / elm / elm2.4 / doc / Alias.guide next >
Encoding:
Text File  |  1993-04-11  |  11.3 KB  |  378 lines

  1. .\" @(#)$Id: Alias.guide,v 5.5 1993/04/12 01:45:22 syd Exp $
  2. .\"
  3. .\"  A guide to the ELM alias system and so on.
  4. .\"  format with:
  5. .\"      tbl Alias.guide | troff tmac.n - > Alias.format'
  6. .\"
  7. .\"  (C) Copyright 1986,1987 Dave Taylor
  8. .\"  (C) Copyright 1988-1992 Usenet Community Trust
  9. .\"  Elm is now in the public trust. Bug reports, comments, suggestions, flames
  10. .\"  etc. should go to:
  11. .\"    Syd Weinstein        elm@DSI.COM (dsinc!elm)
  12. .\"
  13. .\"  $Log: Alias.guide,v $
  14. .\" Revision 5.5  1993/04/12  01:45:22  syd
  15. .\" Update for quotes
  16. .\" From: dwolfe@pffft.sps.mot.com (Dave Wolfe)
  17. .\"
  18. .\" Revision 5.4  1992/12/24  23:48:05  syd
  19. .\" make Nroff not use co symbol, just the word
  20. .\" From: Syd via request from Tim Pierce
  21. .\"
  22. .\" Revision 5.3  1992/12/20  05:06:19  syd
  23. .\" Here are the doc changes for my additions to the alias system and
  24. .\" the new switches to listalias.
  25. .\" From: "Robert L. Howard" <robert.howard@matd.gatech.edu>
  26. .\"
  27. .\" Revision 5.2  1992/10/17  22:01:01  syd
  28. .\" corrected typos
  29. .\" From: David.W.Tamkin@gagme.chi.il.us (David W. Tamkin)
  30. .\"
  31. .\" Revision 5.1  1992/10/03  20:51:50  syd
  32. .\" Initial checkin as of 2.4 Release at PL0
  33. .\"
  34. .\"
  35. .\"
  36. .tm Have we been run through "tbl" first?? I hope so!
  37. .po 1i
  38. .ds h0
  39. .ds h1
  40. .ds h2
  41. .ds f0
  42. .ds f1
  43. .ds f2
  44. .nr Hy 1
  45. .nr Pt 1
  46. .nr Pi 0
  47. .lg 0
  48. .nf
  49. .na
  50. .rs
  51. .za
  52. .sp |3.0i
  53. .ce 99
  54. .ps 20
  55. .ss 18
  56. .vs 12
  57. \f3The Elm Alias System Users Guide\f1
  58. .sp 4
  59. .ps 12
  60. .ss 14
  61. .vs 14
  62. \f2What aliases are and how to use them
  63. in the \f3Elm\fP mail system\f1
  64. .sp 3
  65. The Elm Mail System
  66. (Version 2.4)
  67. .sp 2
  68. Syd Weinstein, Elm Coordinator
  69. Datacomp Systems, Inc.
  70. 3837 Byron Road
  71. Huntingdon Valley, PA 19006-2320
  72. .sp
  73. email: elm\s-1@\s+1DSI.COM  or  dsinc\s-1!\s+1elm
  74. .sp |9.0i
  75. \s18\f3\*(ct\f1\s12 Copyright 1986,1987 by Dave Taylor
  76. \s18\f3\*(ct\f1\s12 Copyright 1988-1992 by The USENET Community Trust
  77. .fi
  78. .ad
  79. .bp 1
  80. .sv 5v
  81. .ps 14
  82. .ss 12
  83. .vs 16
  84. \f3The Elm Alias System Users Guide\f1
  85. .ds h0 "Alias Users Guide
  86. .ds h1
  87. .ds h2 "Version 2.4
  88. .ds f0 "October 1, 1992
  89. .ds f1
  90. .ds f2 "Page %
  91. .sp
  92. .ps 10
  93. .ss 12
  94. .vs 12
  95. (The Elm Mail System, \*(h2)
  96. .sp
  97. \*(f0
  98. .sp 2
  99. Syd Weinstein
  100. Datacomp Systems, Inc.
  101. 3837 Byron Road
  102. Huntingdon Valley, PA 19006-2320
  103. .sp
  104. email: elm\s-1@\s+1DSI.COM  or  dsinc\s-1!\s+1elm
  105. .sp 2
  106. Derived from
  107. \*QThe Elm Mail System, Version 2.0\*U
  108. by
  109. Dave Taylor
  110. Intuitive Systems
  111. Mountain View, California
  112. email: taylor\s-1@\s+1intuitive.com  or  limbo\s-1!\s+1taylor
  113. .ce 0
  114. .sp 3
  115. This document is intended as a supplement to the \f2Elm Users Guide\f1
  116. and is only of interest to those users desiring more knowledge
  117. about how aliases work and how to create strange and exciting
  118. aliases for their systems (okay, so maybe it's not \f2that\f1 exciting!)
  119. .sp
  120. This document is broken up into the following sections;
  121. user aliases,
  122. group aliases,
  123. system aliases,
  124. editing and installing new aliases,
  125. general warnings and other chit-chat.
  126. .sp
  127. .hn 1 User Aliases
  128.  
  129. The simplest type of aliases in the Elm system are individual
  130. user aliases.  These are made up of three parts;
  131.  
  132. .nf
  133.     \f2aliasname list\f1  =  \f2username\f1  =  \f2address\f1
  134. .fi
  135.  
  136. Where the \f2aliasname list\f1 is either a single aliasname\s-1\u1\d\s0
  137. .fn
  138. 1. Aliasnames can be any combination of letters, numbers, hyphens (\*q\-\*u),
  139. periods (\*q.\*u), or underscores (\*q_\*u).  Letter case is not significant,
  140. that is, \*QFRED\*U, \*QFred\*U, and \*Qfred\*U are identical.
  141. .ef
  142. or a list of aliasnames separated by commas.  Aliasnames are case insensitive and will be
  143. converted to all lower case by the alias system.
  144. .sp
  145. \f2Username\f1 is used to indicate the full \*Qreal name\*U of the user.  For
  146. example, if you had an alias for \*Qtaylor\*U to get to me, the
  147. \f2username\f1 field would contain \*QDave Taylor\*U or
  148. perhaps \*QDave Taylor at HP\*U
  149. or some other permutation.  The
  150. name can optionally be entered in the format of \*QTaylor; Dave\*U.  When
  151. this is done, the alias system can sort aliases on a last name basis
  152. for presentation on the alias menu within Elm.
  153. Elm uses this information to add the user's full name to the addresses of
  154. outbound mail to get more readable addresses.  No
  155. matter which format a name is entered, Elm displays it
  156. and puts it in mail headers the way you would expect (i.e., \*QDave Taylor\*U).
  157. .sp
  158. \f2Address\f1 is either the user's full electronic mail address or, if
  159. your system uses a smart mailer, the minimum address needed to specify
  160. the destination.  For example, say my smart mailer
  161. contained information on how to get to machine \*Qhp-sdd\*U and I wanted
  162. to have an address for my friend Ken there \(em I could have his address
  163. specified as simply \*Qken@hp-sdd\*U (or alternatively \*Qhp-sdd!ken\*U since
  164. the two are functionally equivalent).
  165. .sp
  166. Let's get on to some examples, shall we?
  167. .sp
  168. Consider this excerpt from my own \f2.elm/aliases.text\f1 file;
  169.  
  170. .nf
  171. .ft CW
  172. .zf
  173. .in .5i
  174. .ta \w'frank,minjarez 'u \w'frank,minjarez = Frank Minjarez 'u
  175. # Mail aliases for Dave Taylor
  176. # Friends from UCSD
  177. addie    = Addie Silva    = addie@hp-sdd.SDD.HP.COM
  178. frank,minjarez    = Frank Minjarez    = Minjarez.Verify@dockmaster.ddn.mil
  179. pizzini    = Ken Pizzini    = hplabs!ucbvax!ucdavis!pai!ken
  180. george    = Burdell; George P., Famous GT Guy    = gburdell@matd.gatech.edu
  181. .ft 1
  182.  
  183. .in 0
  184. .fi
  185. Note that the alias for Frank Minjarez has two \f2aliasnames\f1 associated
  186. with it, \f2frank\f1 and \f2minjarez\f1.
  187. Also notice that the first and second aliases
  188. use the Internet style naming convention of \f2user@machine\f1
  189. whereas the third uses the \f2uucp\f1 notation of \f2machine!user\f1.
  190. The fourth alias illustrates two features for the \f2username\f1
  191. field.  An individual's name can be entered in the form of
  192. \f2lastname; firstname, comment\f1 which allows the alias system to be able
  193. to sort alias names on a last name basis.  Additionally, any
  194. text after the comma is treated as a comment.  It is stored in
  195. the alias file and displayed on the alias menu but will not
  196. appear in the comment field (between the parentheses) in the header
  197. of a message.  This allows you to enter useful notes about an
  198. individual that you would not otherwise want to include in the
  199. \f3To:\f1 header of a mail message.
  200. .sp
  201. For the most part, the notational format is transparent within the
  202. alias file \(em the only time it \f2does\f1 make a difference
  203. is if you have to specify more than the machine that the user is
  204. receiving mail on (as in the third example above).
  205. .sp
  206. Suffice to say that if you must specify any sort of uucp route
  207. that you should use the uucp notation as much as possible to ensure
  208. that the system expands the correct machine name.  Similarly, if
  209. you're bouncing mail through different Internet sites (to
  210. get to a foreign system, as in the example below) you should use the
  211. notation that system expects, e.g.:
  212.  
  213. .ft CW
  214. .zf
  215. .ti .5i
  216. listserv%byuadmin.BITNET@rugters.edu
  217. .ft 1
  218. .sp
  219. .hn 1 Group Aliases
  220.  
  221. After the confusion of user aliases, group aliases are even more
  222. fun!  For the most part the notation is very similar:
  223.  
  224. .nf
  225. .ti .5i
  226. \f2aliasname list\f1   =   \f2groupname\f1   =   \f2address list\f1
  227. .fi
  228.  
  229. Where \f2aliasname list\f1 and \f2groupname\f1 are exactly equivalent
  230. to the corresponding fields in user aliases.
  231. .sp
  232. The interesting part is the \f2address list\f1 field; this
  233. field is actually in the same notation as the aliasname list (i.e.,
  234. a list of addresses separated by commas),
  235. so it's really quite easy to create.
  236. It's best to illustrate by example:
  237.  
  238. .ft CW
  239. .zf
  240. .nf
  241. .in .5i
  242. friends, mypals = The Gang of Six = joe, larry, mary, joanna,
  243. \h'\w'friends, mypals = The Gang of Six = 'u'nancy, michael
  244. .ft 1
  245. .in 0
  246. .fi
  247.  
  248. Notice that you can continue onto as many lines as you'd like so
  249. long as each additional line starts with either a \f2<space>\f1 or a
  250. \f2<tab>\f1 character.
  251. .sp
  252. At times it may be desirable to send a message to everyone in
  253. the group except one or two people.  This can be accomplished by
  254. adding the individuals' actual IDs to the \f3To:\f1 list, preceded
  255. by a minus sign (\*q\-\*u).  For example, if you were having a surprise
  256. party for \f2nancy\f1 from the above group and you wanted to discuss the
  257. details with the others, you could mail the message to:
  258.  
  259. .ft CW
  260. .zf
  261. .nf
  262. .in .5i
  263. friends \-nancy
  264. .ft 1
  265. .in 0
  266. .fi
  267.  
  268. Unlike in prior versions of Elm, group alias addresses need not
  269. be \f2previously defined aliases\f1 or valid mail addresses on
  270. the current machine.  Any valid delivery address, local user, or
  271. prior user or group alias may now be part of a group alias
  272. \f2address list\f1.
  273. .sp
  274. .hn 1 System Aliases
  275.  
  276. System aliases are functionally equivalent to the individual Elm
  277. alias lists each Elm user has (both user aliases and group aliases)
  278. but are \f2read only\f1 for everyone but the Elm administrator.  The
  279. format of the file is identical to the users' files, and the only difference is
  280. that this file is expected to be located in the directory that contains
  281. the \f3system_hash_file\f1 and \f3system_data_file\f1 files (see the
  282. \f2Elm Configuration Guide\f1 for more details on these variables).
  283. .sp
  284. Simply create the system alias file in the specified directory
  285. as you would a normal alias file, and install it the same way (see the
  286. following section for more details on that).  Voila!!
  287. .sp
  288. .hn 1 Editing and Installing New Aliases
  289.  
  290. To install new aliases, you need merely to create, or modify,
  291. the file \f2$HOME/.elm/aliases.text\f1 until you're
  292. satisfied with it and it meets the requirements discussed above.
  293. You can then try to install it with the command:
  294.  
  295. .ti .5i
  296. $ \f3newalias\f1
  297.  
  298. which either reports the number of aliases installed
  299. or the errors encountered trying to parse and store the
  300. given alias list.
  301. .sp
  302. Note that blank lines are no problem and that comments are not only
  303. allowed but actually encouraged, and must have \*q#\*u as the first
  304. character of each comment line.
  305. .sp
  306. .hn 1 Other Stuff not Covered Yet
  307.  
  308. Probably the biggest question you have in your mind right now
  309. is \*QBut how the heck does this relate to my existing \f2Berkeley Mail\f1
  310. aliases and the lower-level \f2sendmail\f1 alias system?\*U  Well,
  311. rest assured that if you \f2really\f1 want to have
  312. your aliases down in the transport you can.  No problem.  All you'll
  313. need to do is to turn off the address validation in Elm.
  314. .sp
  315. And for those ex-\f2Berkeley Mail\f1 fans, you can translate your
  316. aliases into the format that Elm wants by running them
  317. through the \f2awk\f1 script listed in the appendix.
  318. .sp
  319. Finally, if you have any problems or questions, try looking in
  320. the \f2newalias\f1 manual entry.
  321. .bp
  322. .ce 99
  323. \f3Appendix One
  324. An \f2awk\fP Script for Translating Aliases
  325. from a Berkeley Mail \f2.mailrc\fP File
  326. to an Elm \f2.elm/aliases.text\fP File\f1
  327. .ce 0
  328. .sp
  329. .nf
  330.  
  331. .ta .5i
  332. .ft CW
  333. .zf
  334. BEGIN { print "# Elm .elm/aliases.text file, from a .mailrc file..."
  335.     print ""
  336.     }
  337. next_line == 1 {
  338.     next_line = 0;
  339.     group = ""
  340.     for (i = 1; i <= NF; i++) {
  341.       if (i == NF && $i == "\\\\") sep = ""
  342.       else                       sep = ", "
  343.       if ($i == "\\\\") {
  344.         group = sprintf("%s,", group)
  345.         next_line = 1;
  346.       }
  347.       else if (length(group) > 0)
  348.         group = sprintf("%s%s%s", group, sep, $i);
  349.       else
  350.         group = $i;
  351.       }
  352.       print "\\t" group
  353.     }
  354. $1 ~ /[Aa]lias | [Gg]roup/ {
  355.     if ( NF == 3)
  356.       print $2 " = user alias = " $3;
  357.     else {
  358.       group = ""
  359.       for (i = 3; i <= NF; i++) {
  360.         if (i == NF && $i == "\\\\") sep = ""
  361.         else        sep = ", "
  362.         if ($i == "\\\\") {
  363.           group = sprintf("%s,", group)
  364.           next_line = 1;
  365.         }
  366.         else if (length(group) > 0)
  367.           group = sprintf("%s%s%s", group, sep, $i);
  368.         else
  369.           group = $i;
  370.         }
  371.         print $2 " = group alias = " group;
  372.       }
  373.     }
  374.  
  375. .ft 1
  376. .fi
  377. Note: this script is contained in the release as \f2utils/mailrc.awk\f1.
  378.